]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
notificationDaemon: Fix trayIcon check
authorAdel Gadllah <adel.gadllah@gmail.com>
Fri, 7 Jan 2011 15:22:28 +0000 (16:22 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Fri, 7 Jan 2011 15:24:44 +0000 (16:24 +0100)
Correctly detect non tray icons and use the ShellApp's icon in that case.

js/ui/notificationDaemon.js

index 7197008741b4af9ac17d5688670df5dd36ca4e0f..cbf34cf35f355fde0e29576b8410c7feabcf73d3 100644 (file)
@@ -476,8 +476,8 @@ Source.prototype = {
             return;
 
         // Only override the icon if we were previously using
-        // notification-based icons (ie, not a trayicon)
-        if (this.useNotificationIcon) {
+        // notification-based icons (ie, not a trayicon) or if it was unset before
+        if (!this._isTrayIcon) {
             this.useNotificationIcon = false;
             this._setSummaryIcon(this.app.create_icon_texture (this.ICON_SIZE));
         }